<?php
class AlbunesController extends AppController {
    public $name = 'albunes';
    public $helpers = array('Html', 'Form');
    public $components = array('Session');
	public $uses = array('Albun', 'Foto');
	
	public function beforeFilter() {
        parent::beforeFilter();
    }
 
	public function index() {
		$this->set('albunes', $this->Albun->findAll());
    }
	
	public function view($id = null) {
        $this->set('fotos', $this->Foto->findAll($id));
    }
	
}